﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SilkenWeb.Reg
{
    /// <summary>
    /// Object to represent a REG Candidate.
    /// </summary>
    /// <remarks>
    /// Author: Keith Jackson
    /// Date: July 2008
    /// Copyright 2008 S-Cool Ltd.
    /// </remarks>
    [Serializable()]
    public class Candidate
    {

        #region | Construction |

        /// <summary>
        /// Instantiates a new Candidate.
        /// </summary>
        /// <param name="name">The nam eof the Candidate to create.</param>
        public Candidate(string name)
        {
            Name = name;
            Rejected = false;
        }

        #endregion

        #region | Properties & Fields |

        /// <summary>
        /// Gets or Sets the name / value of the Candidate.
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// Gets a flag to indicate if the candidate has been rejected or not.
        /// </summary>
        public bool Rejected { get; set; }

        #endregion

        #region | Public Methods |

        public override string ToString()
        {
            return Name;
        }

        #endregion

    }
}
